<?php

namespace app\model;

use app\BaseModel;

/**
 * 消息
 */
class MessageModel extends BaseModel
{
    protected $name = 'message';

    /**
     * 新增数据验证
     * @return array
     */
    public function addValidate()
    {
        return [
            'uid|接收人'  =>  'require',
            'type|消息类型'  =>  'require',
            'content|内容' =>  'require'
        ];
    }
}